package com.cy.sys.dao;

import com.cy.sys.pojo.sysUserDeptPojo;
import com.cy.sys.pojo.sysUserPojo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    
    List<sysUserPojo> doFindPageObjects(@Param("username") String username);


    int validById(@Param("id")Integer id,
                  @Param("valid")Integer valid,
                  @Param("modifiedUser")String modifiedUser);
    String doFindIdByName(@Param("username")String username);
    sysUserPojo doFindObjectById(Integer id);

    int doSaveObject(sysUserDeptPojo sysUserDeptPojo);

    int doUpdateObject(sysUserDeptPojo sysUserDeptPojo);


    int insertjs(@Param("roleId")Integer roleId,@Param("id")Integer id);
    int deletejs(@Param("id") Integer id);
    sysUserPojo  findByUserName(String username);
    List<Integer> doFindqx(@Param("id") Integer id);

    

}
